libxl: correctly parse storage devices on driver domains
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 3 May 2013 11:23:01 +0000 (13:23 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 8 May 2013 11:06:41 +0000 (12:06 +0100)
commit846bd69104e5d62f29b7282419827e52e99f3efd
tree8cab8b290349008c6052ac4c0fd86bb5d2a308d4
parentdd4409a8e9cf56d1d0bb30b25483df31aee9336e
libxl: correctly parse storage devices on driver domains

Don't try to check physical devices if they belong to a domain
different than the one where the toolstack is running. This prevents
the following error when trying to use storage driver domains:

libxl: debug: libxl_create.c:1246:do_domain_create: ao 0x1819240: create: how=(nil) callback=(nil) poller=0x1818fa0
libxl: debug: libxl_device.c:235:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=phy
libxl: debug: libxl_device.c:175:disk_try_backend: Disk vdev=xvda, backend phy unsuitable as phys path not a block device
libxl: error: libxl_device.c:278:libxl__device_disk_set_backend: no suitable backend for disk xvda

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c